package cn.sxjzit.officlal.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Configuration// 表明当前类是一个配置类 作用同xml配置文件 约定大于配置
@ComponentScan("cn.sxjzit.officlal")// 指定spring扫描的基础包路径
@EnableTransactionManagement//使用事务管理器
// 整合mybaits-plus的配置
@PropertySource("classpath:jdbc.properties")
@Import({MyBatisConfig.class,ServletConfig.class,SpringMvcConfig.class})
public class SpringConfig {

}